'use strict';

import Storage from 'react-native-storage';
import { AsyncStorage, Dimensions } from 'react-native';

let storage = new Storage({
    size: 5000,
    storageBackend: AsyncStorage,
    defaultExpires: 1000 * 3600 * 24 * 30, //default 1 month
    enableCache: true,
    autoSync: false,
});

const { width, height } = Dimensions.get('window');

global.storage = storage;
global.screenWidth = width;
global.screenHeight = height;